package com.itheima.controller;


import com.itheima.domain.Card;
import com.itheima.domain.Classes;
import com.itheima.domain.Student;
import com.itheima.service.*;
import org.junit.Test;

import java.util.List;

public class QueryTest {

    @Test
    public void testOne2One(){
        OneToOneService oneToOneService = new OneToOneServiceImpl();
        List<Card> cards = oneToOneService.selectAll();
        System.out.println(cards);
    }

    @Test
    public void testOne2Many(){
        OneToManyService oneToManyService = new OneToManyServiceImpl();
        List<Classes> classes = oneToManyService.selectAll();
        System.out.println(classes);
    }

    @Test
    public void testManyToMany(){
        ManyToManyService manyToManyService = new ManyToManyServiceImpl();
        List<Student> students = manyToManyService.selectAll();
        System.out.println(students);
    }



}
